package com.dlu.safe_construction.service;

import com.dlu.safe_construction.common.ApiResult;
import com.dlu.safe_construction.dto.CarInfoDTO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.dlu.safe_construction.model.Car;
import com.dlu.safe_construction.mapper.CarMapper;
/**
 * Created by  lijiaxing on 2022/3/30 20:57
 *
 * @author lijiaxing
 */

public interface CarService{

    ApiResult<Void> add(Car car);

    ApiResult<Void> deleteBy(String key, Integer byWhat);

    ApiResult<Void> edit(Car car);

    ApiResult<List<CarInfoDTO>> listAll();

    ApiResult<List<CarInfoDTO>> searchBy(String key,Integer byWhat);

}
